<form action="{:url()}" method="post" class="form_single">
    <div class="box">
      <div class="box-body">
        <div class="row">
          <div class="col-md-6">
            <div class="form-group">
              <label>用户</label>
              <span>（选择要调整积分的用户）</span>
              <select class="form-control" name="user_id">
                <option value="">请选择用户</option>
                {volist name="users" id="user"}
                <option value="{$user.id}" {if condition="$info.user_id eq $user.id"}selected{/if}>{$user.nickname} (当前积分: {$user.points})</option>
                {/volist}
              </select>
            </div>
          </div>
          <div class="col-md-6">
            <div class="form-group">
              <label>积分变动</label>
              <span>（正数为增加，负数为减少）</span>
              <input class="form-control" name="points_change" placeholder="请输入积分变动" value="{$info['points_change']}" type="number">
            </div>
          </div>
 
          <div class="col-md-6">
            <div class="form-group">
              <label>变动类型</label>
              <span>（积分变动的类型）</span>
              <select class="form-control" name="type">
                <option value="manual" {if condition="$info.type eq 'manual'"}selected{/if}>手动调整</option>
                <option value="checkin" {if condition="$info.type eq 'checkin'"}selected{/if}>签到获得</option>
                <option value="purchase" {if condition="$info.type eq 'purchase'"}selected{/if}>购买消费</option>
                <option value="refund" {if condition="$info.type eq 'refund'"}selected{/if}>退款返还</option>
                <option value="reward" {if condition="$info.type eq 'reward'"}selected{/if}>奖励获得</option>
              </select>
            </div>
          </div>
 
          <div class="col-md-6">
            <div class="form-group">
              <label>操作时间</label>
              <span>（积分变动的时间）</span>
              <input class="form-control" name="create_time" placeholder="请选择操作时间" value="{$info['create_time']}" type="datetime-local">
            </div>
          </div>

          <div class="col-md-12">
            <div class="form-group">
              <label>变动原因</label>
              <span>（积分变动的详细原因）</span>
              <textarea class="form-control" name="reason" rows="3" placeholder="请输入变动原因">{$info['reason']}</textarea>
            </div>
          </div>

          <div class="col-md-12">
            <div class="form-group">
              <label>备注</label>
              <span>（操作备注说明）</span>
              <textarea class="form-control" name="remark" rows="3" placeholder="请输入备注">{$info['remark']}</textarea>
            </div>
          </div>
            
        </div>
      </div>
      <div class="box-footer">
        
        <input type="hidden" name="id" value="{$info['id']|default='0'}"/>
          
        {include file="layout/edit_btn_group"/}
        
      </div>
    </div>
</form>